<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit"> 
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> 
<meta name="format-detection" content="telephone=no" /> 
<link rel="shortcut icon" href="images/logo.ico" />
<title>闪度生活</title>
<meta name="keywords" content=" " />
<meta name="description" content=" " />


<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/swiper-3.4.1.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">

<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/easing.js"></script>
<script src="js/swiper-3.4.1.min.js"></script>
<script src="js/index.js"></script>
<script src="js/main.js"></script>

<script src="./js/vue.js"></script>
<script src="./js/axios.min.js"></script>
<script src="./js/axios-config.js"></script>
<script src="./js/js.cookie.js"></script>
<script src="./js/utils.js"></script>


</head>

<body>
<div id="app">
<!--  / header  -->
<div class="header_longevity">
    <div class="header_map_longevity">   
        <img src="images/jiantou.png" alt="">
        <span>返回</span>
    </div>
    <div class="logo_longevity">历史活动</div>  
</div>
<!--  / header  -->


<div class="bigStage_history" >
    <div class="bigStage_history1" v-for="(list,index) in history_list" @click="jump(list.stage_deploy_id)">
        <img :src="list.pic" alt="">
        <div class="bigStage_history1-text">{{list.title}}</div>
    </div>
</div>

</div>
</body>
<script>
$(window).ready(function(){

var vm = new Vue({
		el:"#app",
		data() {
            return {
                city_name:{
                	city:sessionStorage.getItem("cityLocation")
                },
                history_list:''
            }
		},
    created: function () {
    	
		var $this = this;
    	$this.getHistory_list();
    },
    mounted:function(){
    	
    },
    methods:{
    	
    	//获取历史活动
    	getHistory_list:function(){
    		var $this = this;
    		
    		const data = {
    			type:1
    		}
    		Axios.post(window.Url.activities_history_list,$this.city_name).then((res) => {
    			
    			if(res.result == 1){
    				$this.history_list = res.info.stage;
    			}
    			else{
    				console.log('历史活动：'+res.info)
    			}
    			
	        }).catch((err) => {
	          console.log('历史活动：'+err)
	        })
    	},
    	//跳转至活动详情
    	jump:function(id){
    		setCookie('stage_deploy_id',id);
    		setCookie('vote',2);
    		window.location.href = "bigStage_vote.html";
    	}
    }
})
	

$('.banner').height($(window).width()*400/750);

var mySwiper_banner = new Swiper ('.swiper-container-banner', {
    loop: true,
    pagination: '.swiper-pagination-banner',
	autoplay : 5000,
	autoplayDisableOnInteraction : false,
})
$('.header_map_longevity').click(function(){
    history.go(-1);
});
$('.longevity1 li').click(function(){
    window.location.href = "InformationDetails.html";
});
/*$(".bigStage_history1").on('click',function(){
    window.location.href = "bigStage_vote1.html";
});*/

  
})  
</script>
</html>
